package org.ix.gateway.route.model.response;

import com.alibaba.excel.annotation.ExcelProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.ix.common.excel.LocalDateTimeConverter;
import org.ix.common.excel.LocalDateTimeFormat;

@ApiModel(description = "网关路由版本列表元素响应实体")
@Getter
@Setter
@ToString
public class GatewayRoutesVersionListItemResponse implements Serializable {

    @ExcelProperty(value = "版本号", index = 0)
    @ApiModelProperty(value = "版本号", position = 0)
    private Long id;

    @ExcelProperty(value = "创建时间", index = 1, converter = LocalDateTimeConverter.class)
    @LocalDateTimeFormat
    @ApiModelProperty(value = "创建时间", position = 1)
    private LocalDateTime createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
